package com.wbao.dianniu.logical;

import com.alibaba.mobileim.YWIMKit;

/**
 * 全局变量
 * 
 * @author yejianjun
 *
 */
public class GlobalContext {
	public static final int NUMCOLUMNS = 3;
	public static int VersionCode = 0;
	//文件路径前缀
	public static final String IMAGE_INDEX = "http://dianniu.image.alimmdn.com/images/";
	/** 简历显示或隐藏，0：隐藏，1：显示 */
	public static int resumeStatus = 1;
	/** 简历是否完善 false：未完善，true：已完善 */
	public static boolean isPerfectResume = false;
	/** 是否完善资料 true： 是，false：否　*/
	public static boolean isPerfectData = false;
	/** 是否行业认证  true： 是，false：否　*/
	public static boolean isIndustryAuthority = false;
	/**	运行环境： qa：测式环境， prod： 正式环境，  local：本地环境	*/
	public static String environment = "";
	
	public final static String SyncInsturyKey = "updateIndustryAuth";
	public final static String SyncInsturyValue = "syncIndustryAuth";
	
	//全局变量 用户Id
	public static int accountId = 0;
	public static int dataprivacy = 0;
	public static int beFriend = 0;
	//获取全局变量 手机号码
	public static String mobile = null;
	//全局变量 token
	public static String token = null;
	//全局变量 cdnToken
	public static String cdnToken = null;
	//全局变量 cdndownUrl
	public static String cdndownUrl = "http://dianniu.image.alimmdn.com/images/";//null;
	// 当前位置全局变量
	public static String curLocation = "";
	
	//登录时，存储关于我的的全局变量
	/**	头像	*/
	public static String headPic = null;
	/**	昵称	*/
	public static String niceName = null;
	/**	电纽号	*/
	public static int _ID = 0;
	/**	个性签名	*/
	public static String signate = null;
	/** 标签	*/
	public static String label = null;
	
	/**	数据传递key字段	*/
	public final static String QA_DATA_BUNDLE="qa_data_putExtra_key";
	public final static String AM_DATA_BUNDLE="am_data_putExtra_key";
	
	public final static String INTENT_MOBILE="intent_mobile";
	public final static String BUNDLE_ACCOUNTID="bundle_accountId";
	public final static String BUNDLE_CREATEDATE="bundle_createDate";
	public final static String BUNDLE_HEADPIC="bundle_headPic";
	public final static String BUNDLE_REALNAME="bundle_realName";
	public final static String BUNDLE_LABEL="bundle_label";
	public final static String BUNDLE_ISFRIEND="bundle_isFriend";
	public final static String BUNDLE_CONTENT="bundle_content";
	public final static String BUNDLE_QUESTIMGS="bundle_questImgs";
	public final static String BUNDLE_VISITORCOUNT="bundle_visitorCount";
	public final static String BUNDLE_FORWARDCOUNT="bundle_forwardCount";
	public final static String BUNDLE_GOODCOUNT="bundle_goodCount";
	public final static String BUNDLE_ANSWERCOUNT="bundle_answerCount";
	public final static String BUNDLE_ISGOOD="bundle_isGood";
	public final static String BUNDLE_QUESTID = "bundle_questId";
	public final static String BUNDLE_ALIASNAME = "bundle_aliasName";
	public static YWIMKit mIMKit = null;
	public final static String BUNDLE_POSITION = "bundle_position";
	private static GlobalContext instance;
	
	public GlobalContext instance() {
		if(null == instance){
			instance = new GlobalContext();
		}
		return instance;
	}

	public static final String INTENT_IS_MESSAGE = "intent.is.message";
	public static final String NICE_NAME_INTENT = "intent_nice_name";
	public static final String INTENT_SIGNATE = "intent_signate";
	public static final String INTENT_NICENAME = "intent_nice_name";
	public static final String INTENT_SEX = "intent_sex";
	public static final String INTENT_MORE_TRADE = "intent_more_trade";
	public static final String INTENT_AUTH_LEVEL = "intent_auth_level";
	public static final String INTENT_JOB_ID = "com.wbao,jobId";
	
	public static final String INTENT_MAP_LAT = "intent.map.latitude";
	public static final String INTENT_MAP_LONG= "intent.map.longitude";
	public static final String INTENT_MAP_ADDRESS = "intent.map.address";
	
	public static final String INTENT_REPORT_OBJECTID = "intent.report.objectid";
	public static final String INTENT_REPORT_TYPE = "intent.report.type";
	
	public static final String INTENT_ACTIVITYID = "intent.activityId";
	public static final String INTENT_ACTIVITY_STATUS = "intent.activity.status";
	
	public static final String BUNDLE_BROWSE = "bundle.browse";
	public static final String BUNDLE_SIGNUP = "bundle.sign.up";
	public static final String BUNDLE_PASS = "bundle.pass";
	public static final String BUNDLE_DATA = "bundle.data";
	
	public final static String BUNDLE_EDIT = "bundle.recruit.edit";
	public final static String BUNDLE_POST = "bundle.recruit.post";
	public final static String BUNDLE_SALARY = "bundle.recruit.salary";
	public final static String BUNDLE_TRYOUT = "bundle.recruit.tryout";
	public final static String BUNDLE_ADDRESS = "bundle.recruit.address";
	public final static String BUNDLE_COUNT = "bundle.recruit.count";
	public final static String BUNDLE_EXPERIENCE = "bundle.recruit.experience";
	public final static String BUNDLE_EDUCATION = "bundle.recruit.education";
	public final static String BUNDLE_DESCRIBLE= "bundle.recruit.describle";
	public final static String BUNDLE_ID= "bundle.id";
	public final static String BUNDLE_PRICE = "bundle.price";
	public final static String BUNDLE_SUBJECT = "bundle.subject";
	public final static String BUNDLE_MAXPERSION = "bundle.max.persion";
	public final static String BUNDLE_STARTDATE = "bundle.startdate";
	public final static String BUNDLE_ENDDATE = "bundle.endDate";
	public static final String RET_DATE = "result_data";
	
}
